package com.yueyang.sojourn.server.controller.wx;

import com.yueyang.sojourn.server.common.LoginNeedless;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-21 17:11
 */
@Api(tags = "(小程序) API")
@RestController
@RequestMapping("/api/wx")
public class ApiCommonController {

    @Value("${sojourn.call-center.phone}")
    private String callCenterPhone;

    @LoginNeedless
    @ApiOperation(value = "获取客服电话")
    @GetMapping("/call/phone")
    public Long callCenterPhone() {
        return Long.valueOf(callCenterPhone);
    }
}
